#ifndef _USER_MQTT_H
#define _USER_MQTT_H

#ifdef __cplusplus
extern "C" {
#endif

#include "stdint.h"

/*
#define CONFIG_BROKER_URL "wss://a51b7bc8.ala.cn-hangzhou.emqxsl.cn"
#define CONFIG_BROKER_PORT 8084

*/
#define CONFIG_BROKER_URL "mqtts://a51b7bc8.ala.cn-hangzhou.emqxsl.cn"
#define CONFIG_BROKER_PORT 8883
#define CONFIG_BROKER_USERNAME "admin"
#define CONFIG_BROKER_PASSWORD "admin"

void user_mqtt_task(void *args);
void mqtt_send(uint8_t *topic, uint8_t *data);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif